<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%= request.getContextPath()%>/">
</head>
<body>
<div style="margin-left: 400px">
<a href="animal/add">添加</a>
<table border="1px" bordercolor="blue" cellspacing="0">
<tr>
<th>编号</th>
<th>名称</th>
<th>重量</th>
<th>类型</th>
<th colspan="2">操作</th>
</tr>
<c:forEach items="${ list}" var="animal">
<tr>
<td>${animal.animalId }</td>
<td>${animal.animalName }</td>
<td>${animal.animalWeight }</td>
<td>${animal.type.typeName }</td>
<td><a href="animal/update?animalId=${animal.animalId }">修改</a></td>
<td><a href="animal/delete?animalId=${animal.animalId }">删除</a></td>
</tr>

</c:forEach>
</table>
</div>
</body>
</html>